package com.easy.mapper;

import com.easy.bean.Notification;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NotificationDao {
    int add(@Param("param") Notification notification);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Notification notification);
    Notification one(@Param("id") Integer id);
    List<Notification> all(@Param("param") Notification notification);
    int pageCount(@Param("param") Notification notification);
    List<Notification> page(@Param("page") Page page, @Param("param") Notification notification);
    int pageCountWithDetails(@Param("param") Notification notification);
    List<Notification> pageWithDetails(@Param("page") Page page, @Param("param") Notification notification);
}
